package org.example.service;

import org.apache.commons.lang3.StringUtils;
import org.example.config.AlipayService;
import org.example.dto.PayDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class AlipayInfoServiceImpl {

    @Autowired
    private AlipayService alipayService;

    /**
     * 用来进行跳转到  二维码生成的页面
     *
     * @param dto
     * @return
     */
    public String goBuy(PayDto dto) {
        return alipayService.createPayUrl(dto.getMoney(), dto.getSubjectDesc());


    }
}
